package com.ycrlkj.android.modulescore.main.entity;

import android.annotation.SuppressLint;

import lombok.Data;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

@Data
public class XxStation implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    private String name;

    private String expireTime;

    private Integer state; //阶段: 1=>规划中, 2=>施工中, 3=>已完工

    private String contactName; //联系人姓名

    private String contactPhone; //联系人电话

    private Integer disabled;

    private String createTime;

    private String updateTime;

    private String province;

    private String city;

    private String district;

    private String address;

    private Double lat; //位置坐标纬度

    private Double lng; //位置坐标经度


    private String photo; //位置坐标经度

    private Integer washRoom; //清洗车间数

    private Integer dryRoom; //烘干车间数

    private String des; //站点简介

    //============================================================================================

    private Double locationDistance;

    private String today;
    private String tomorrow;
    private String thirdDate;

    private Integer todayAppointment;
    private Integer tomorrowAppointment;
    private Integer thirdDateAppointment;

    private Integer todayCheck;
    private Integer tomorrowCheck;
    private Integer thirdDateCheck;

    public XxStation() {

        @SuppressLint("SimpleDateFormat")
        SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd");

        Date todayDate = new Date();
        this.today = sd.format(todayDate);

        Calendar calendar = new GregorianCalendar();
        calendar.setTime(todayDate);

        calendar.add(Calendar.DATE, 1);
        this.tomorrow = sd.format(calendar.getTime());

        calendar.add(Calendar.DATE, 1);
        this.thirdDate = sd.format(calendar.getTime());

    }
}

